find_package(OpenCV 4 REQUIRED)

set(MNN_PREFIX_PATH /usr/local)
set(MNN_INCLUDE_DIRS ${MNN_PREFIX_PATH}/include/MNN)
set(MNN_LIBS ${MNN_PREFIX_PATH}/lib/libMNN.so ${MNN_PREFIX_PATH}/lib/libMNN_Express.so)

aux_source_directory(src MNNDEPLOY_DIRS)
add_library(Yolo SHARED ${MNNDEPLOY_DIRS})
target_include_directories(
        Yolo PUBLIC
        include
        ${OpenCV_INCLUDE_DIRS}
        ${MNN_INCLUDE_DIRS}
)
target_link_libraries(
        Yolo
        ${OpenCV_LIBS}
        ${MNN_LIBS}
        pthread
        Parameter
)